<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>价格日历</title>
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="js/calendar.js"></script>

</head>
<body>
<div id="calendar"></div>

<!--<a onclick="setCal(this)" class="btn btn-primary btn-lg">触发莫泰</a>-->

<a class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal" style="display: none;" id="modalClick">

</a>
<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    设置当天的价格和库存
                </h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-validate">
                    <div class="form-group">

                        <label class="col-sm-2 control-label">库存</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="number" id="stock" class="form-control"/>
                        </div>

                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">价格</label>
                        <div class="col-sm-9 col-xs-12" style="margin-top: 20px;margin-bottom: 20px;">
                            <input type="number" id="price" class="form-control"/>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="getInfo(this)">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
</body>
</html>